package edu.gdkm.demo;

public class Demo28 {
    public static void main(String[] args) {
        String[] name={"张三","李四","王五","赵六"};
        int[] age={18,20,19,18};

        for(int i=0;i<name.length;i++){
            System.out.println(name[i]+":"+age[i]+"岁");
        }
//        System.out.println(name[0]+":"+age[0]+"岁");
//        System.out.println(name[1]+":"+age[1]+"岁");
//        System.out.println(name[2]+":"+age[2]+"岁");
//        System.out.println(name[3]+":"+age[3]+"岁");

    }
}
